<template>
    <div>
      <div class="cover">
            <div class="showImg">
                <!-- <swiper-gallery></swiper-gallery> -->
                    <sidetab1 :is="currentTab" keep-alive>
              </sidetab1> 
            </div>
            <div class="sideBar">
                <slot name="sidebar"></slot>
                   
                     <div class="footer" v-for="(item,index) in tabList" :key="index">
                <div @click="toggleTab('sidetab1')"   class="fot fot1">
                   {{ item[0] }}
                </div>
          
              </div>
         
            </div>
            <slot name="del"></slot>
      </div>
    </div>
</template>
<script>

import sidetab1 from "../sideTab/sideTabItem1";

export default {
  data() {
    return {
          currentTab: "sidetab1",
            tabList:{
        text:["妆面展示"]
      }
    };
  },
  methods: {
        toggleTab: function(tab) {
      this.currentTab = tab;
    }
  },
  components: {
    sidetab1
    
  }
};
</script>
<style   scoped>
@import url("../../assets/font/iconfont.css");
@import url("../../assets/css/base.css");

.cover {
  width: 100%;
  height: 100%;
  /* background-color: skyblue; */
  position: fixed;
  left: 0;
  top: -10px;
  display: flex;
  justify-content: space-between;
  z-index: 5;
}
.showImg {
  flex: 3;
  width: 60%;
  height: 100%;
  margin: 60px 65px 0px 65px;
  /* background-color: rgb(46, 46, 46); */
}
.sideBar {
  z-index: 3;
  flex: 1;
  /* width: 440px; */
  height: 100%;
  background-color: #202020;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}


.footer {
  margin-top: 40px;

  background-color: #202020;
}
.footer .fot {
  height: 50px;
  line-height: 50px;
  color: #dcdcdc;
  text-align: center;
      background-color: #323232;
  border-left: 5px solid #f83e7a;
}
.footer .fot1 {
  /* background-color: #323232;
  border-left: 5px solid #f83e7a; */
}

</style>

